package provagrails

class Thread {
    String name
    String text
    Date dateCreated
    String status="Open"

    static belongsTo = [argument:Argument]

    static constraints = {
        name blank: false,unique: true
        text blank: false, maxSize: 1000
        status inList: ["Open","Answered"]
        dateCreated blank:false
    }
}
